package com.cn.pojo;


import javax.validation.constraints.NotNull;
public class TbShop {

  private long id;
  @NotNull(message = "名称不能为空")
  private String name;
  @NotNull(message = "标题不能为空")
  private String title;
  @NotNull(message = "价格不能为空")
  private double price;
  private long num;

  private String spec;


  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }


  public long getNum() {
    return num;
  }

  public void setNum(long num) {
    this.num = num;
  }


  public String getSpec() {
    return spec;
  }

  public void setSpec(String spec) {
    this.spec = spec;
  }

}
